package com.henghai.zhenxuan.ui.page.adapter;

import android.content.Context;

import androidx.recyclerview.widget.RecyclerView;

import com.henghai.zhenxuan.data.bean.RankingListBean;
import com.henghai.zhenxuan.databinding.AdapterIntegralRankingListBinding;
import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter;

public class RankingListAdapter extends SimpleDataBindingAdapter<RankingListBean.RowsBean, AdapterIntegralRankingListBinding> {

    public RankingListAdapter(Context context) {
        super(context, com.henghai.zhenxuan.R.layout.adapter_integral_ranking_list, DiffUtils.getInstance().getRankingItemCallback());
    }

    @Override
    protected void onBindItem(AdapterIntegralRankingListBinding adapterIntegralRankingListBinding, RankingListBean.RowsBean rowsBean, RecyclerView.ViewHolder viewHolder) {
        adapterIntegralRankingListBinding.setRanking(rowsBean);
    }
}
